from flask import render_template, current_app
from flask_login import login_required
from . import main_bp

@main_bp.route('/')
def index():
    current_app.logger.info('访问首页')  # 添加日志
    return render_template('index.html')

@main_bp.route('/dashboard')
@login_required
def dashboard():
    return render_template('dashboard/index.html') 